package com.hanqian.kepler.core.entity.primary.core;

import com.hanqian.kepler.common.base.entity.BaseEntity;
import com.hanqian.kepler.flow.entity.User;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 * 评价
 * ============================================================================
 * author : dzw
 * createDate:  2021/1/6 。
 * ============================================================================
 */
@Getter
@Setter
@Entity
@Table(name = "kepler_target_evaluate")
public class TargetDescEvaluate extends BaseEntity {

	/**
	 * 指标描述
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	private TargetDesc targetDesc;

	/**
	 * 评价时指标描述的版本
	 */
	private int versionIndex;

	/**
	 * 评价内容
	 */
	@Column(length = 800)
	private String content;

	/**
	 * 评论人
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	private User creator;

}
